#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2020/10/14 22:25
# @Author  : LJ
# @Site    :
# @File    : main.py
# @Software: PyCharm


import math


def add(x, y):
    """相加"""
    return x + y


def subtract(x, y):
    """相减"""
    return x - y


def multiply(x, y):
    """相乘"""
    return x * y


def divide(x, y):
    """相除"""
    return x / y


def divideby(x, y):
    '''整除'''
    return x // y


def surplus(x, y):
    '''取余数'''
    return x % y


def square(x, y):
    '''阶乘'''
    return x ** y


def root(x):
    return math.sqrt(x)


print(add(1, 2))
print(subtract(1, 2))
print(multiply(1, 2))
print(divideby(1, 2))
print(divide(1, 2))
print(surplus(1, 2))
print(square(1, 2))
print(root(8))
